package com.hliushi.demo;

import org.testng.annotations.*;

/**
 * @author: hliushi
 * @date: 2022/9/27 15:22
 **/
@Test(groups = {"TEST_GROUPS"})
public class QuickStartTestNG {

    public static final String TEST_GROUPS = "";

    @BeforeClass
    public void beforeClass() {
        System.out.println(">>> beforeClass");
    }

    @BeforeTest
    public void beforeTest() {
        System.out.println(">>> beforeTest");
    }


    @Test(enabled = true, groups = {"read", "file"})
    public void testReadFile() {
        System.out.println("「INFO」 readFile");
    }

    @Test(enabled = true, groups = {"write", "file", TEST_GROUPS})
    public void testWriteFile() {
        System.out.println("「INFO」 writeFile");
    }

    @AfterTest
    public void afterTest() {
        System.out.println(">>> afterTest");
    }

    @AfterClass
    public void AfterClass() {
        System.out.println(">>> afterClass");
    }
}
